package com.deep.provider.controller;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RefreshScope
@RestController
public class ClientController {

    @Value("${word:provider}")
    private String word;

    @RequestMapping("/hello")
    public String index(@RequestParam String name) {
        return name + "," + this.word;
    }
}

